import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { post, get } from './components/utils/http'
import axios from "axios";

import './static/css/article.css'
// import './static/css/code.css'
import './static/css/bootstrap.min.css'
import './static/css/all.min.css'
import './static/css/simple-line-icons.css'
import './static/css/slick.css'
import './static/css/jquery.mCustomScrollbar.min.css'
import './static/css/style.css'
import vuetify from './plugins/vuetify'
import { API,FTP } from "./common/const";
import 'viewerjs/dist/viewer.css'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);

Vue.prototype.$ajax = axios //引入axios——> this.$ajax
Vue.prototype.$post = post;
Vue.prototype.$get = get;
// 请求地址
if (API.PORT === 80){
  Vue.prototype.$reurl = API.DOMAIN + "/" + API.VER
}else {
  Vue.prototype.$reurl = API.DOMAIN + ":" + API.PORT + "/" + API.VER
}

Vue.prototype.$imageBedReUrl = API.DOMAIN + "/" + "bed/"

// FTP请求地址
Vue.prototype.$FTPReIP = FTP.PROXY + '://' +FTP.IP

Vue.config.productionTip = false

new Vue({
  router,
  store,
  vuetify,
  render: h => h(App)
}).$mount('#app')
